<link rel="stylesheet" href="/static/dist/css/AdminLTE.min.css" type="text/css">
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="/static/plugins/datatables/jquery.dataTables.css" type="text/css">
<link rel="stylesheet" href="/static/css/admin.css" type="text/css">
<link rel="stylesheet" href="/static/jBox/Skins/Metro/jbox.css" type="text/css">
<link rel="stylesheet" href="/static/plugins/daterangepicker/daterangepicker.css" type="text/css">
<link rel="stylesheet" href="/static/plugins/datepicker/datepicker3.css" type="text/css">

<style>
    .ul_tree_display{
        display: none;
    }
    .tr_tree_display{
        display: none;
    }
    .dataTables_length{
        margin-top: 10px;
    }
    .dataTable>tbody>tr>td{
        vertical-align: middle;
        font-size: 0.8em;
        padding: 8px 18px;
    }
    .dataTable>thead>tr>th{
        vertical-align: middle;
        font-size: 0.8em;
    }
</style>
<div class="tabs-panel">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <!--<h3 class="box-title">Hover Data Table</h3>-->
                    <h4 class="modal-title">
                        <strong>商品分配管理 &nbsp; &nbsp; &nbsp; &nbsp;分配名称：<?php echo $title  ?></label></strong>
                        <input type="hidden" name="search_set_id" id="search_set_id" value = "<?php echo $set_id  ?>">
                        <input type="hidden" name="type" id="type" value = "<?php echo $type  ?>">
                    </h4><br>
                    <button type="button" class="btn btn-primary depart-modal" id="select_button" style="width: 100px;">查询</button> &nbsp;
                    <button type="button" class="btn btn-warning depart-modal" id="reset_button" style="width: 100px;">重置</button> &nbsp;
                    <button type="button" class="btn btn-primary depart-modal" id="back_button" style="width: 100px;">返回</button> &nbsp;
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    <button type="button" class="btn btn-success depart-modal" id="add_button" style="width: 100px;">添加</button>
                    <table id="table_list" class="display">
                        <thead>
                        <tr>
                            <th style="width: 5%">操作</th>
                            <th style="width: 5%">ID</th>
                            <th style="width: 5%">主商品号</th>
                            <th style="width: 5%">商品号</th>
                            <th style="width: 8%">物料号</th>
                            <th style="width: 8%">商品名称</th>
                            <th style="width: 8%">排序序号</th>
                            <th style="width: 5%"><?=TITLE_STATUS?></th>
                        </tr>
                        </thead>
                        <tbody></tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id = "myModalLabel" name = "myModalLabel">
                        添加搭配商品
                    </h4>
                </div>
                <div class="modal-body">
                    <form action="/goods-match/save-match-goods" method="post" id="goods_form">
                        <div class="box-body">
                            <div class="form-group">
                                <button type="button" class="btn btn-success depart-modal" id="add_input" style="width: 100px;">添加</button>
                                <table class="table table-hover" id="input_table">
                                    <tr>
                                        <th>物料号</th>
                                        <th>操作</th>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <input type="hidden" name="set_id" id="set_id" value = "<?php echo $set_id  ?>">
                        <input type="hidden" name="set_type" id="set_type" value = "<?php echo $type  ?>">
                        <!-- /.box-body -->
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <a type="button" class="btn btn-primary ajax_submit">提交</a>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>
</div>
<!-- 固定js -->
<script type="text/javascript" src="/static/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script type="text/javascript" src="/static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/plugins/datatables/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/static/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script type="text/javascript" src="/static/jBox/jquery.jBox-2.3.min.js"></script>
<script type="text/javascript" src="/static/jBox/i18n/jquery.jBox-zh-CN.js"></script>
<!--图片上传插件用-->
<script type="text/javascript" src="/static/plugins/jquery.form.js"></script>
<!--图片显示用-->
<script type="text/javascript" src="/static/plugins/layer/layer.js"></script>
<!-- 自定义js -->
<script type="text/javascript" src="/static/app/global.js?version=<?=Yii::$app->params['version']?>"></script>
<script type="text/javascript" src="/static/app/goods-match/goods-list.js?version=<?=Yii::$app->params['version']?>"></script>